feat(memory): add version-aware development history core - #456
Draft
Anduin9527 wants to merge 22 commits into
Draft
feat(memory): add version-aware development history core#456Anduin9527 wants to merge 22 commits into
Anduin9527 wants to merge 22 commits into
Conversation
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
memory.recallplus opt-inmemory.episode.recordfor completed DSH turns.Architecture
The implementation follows the design accepted in #454:
Upstream integration
Merged upstream main through
2ebd409045b5114707986b66a7a6b42b5a4a4b7e, preserving the existing PR branch history.--all, and--mirrorpush.web/outassets.2026090701_memory_core2026090702_memory_fts_search2026090703_context_selection_receiptThe migration runner only applies versions above the current tip. The new ordering prevents repositories already on Operation v2 from skipping Memory tables. Memory SQL semantics are unchanged; historical down/up fixtures exclude the forward-only Operation v2 migration, and the Memory upgrade test starts from the actual upstream schema.
DSH integration
Enable completed-turn capture with
LIBRA_DSH_MEMORY_MODEL=deepseek-chaton the bridge andcaptureMemoryEpisodes: truein the separately maintained DSH plugin. A compiler credential is required. Recall alone remains available without a compiler model.Capture uses the first-turn code HEAD and completion HEAD, targets that turn's compilation job, and retains SHA-1 code-anchor compatibility. The plugin's real DSH
v0.1.2-alpha.1gate previously generated a structured Episode with a real compiler model, verified its stored projection/receipt, remounted the plugin, and recalled the result through a real headless model run.The shelved native Libra DSH runtime is not included. The plugin's Cordis refactor is separate preparation work, not part of this PR.
Verification
Merged-candidate Docker checks:
cargo test --test db_migration_test --test operation_schema_v2 --test agent_bridge_migration_test --test agent_capture_migration_test -- --test-threads=1: 97 passed (80 + 3 + 5 + 9).cargo +nightly fmt --all --check: passed.cargo clippy --all-targets --all-features -- -D warnings: passed.cargo test --test compat_serial_registry --test publish_worker_template_embed_test -- --test-threads=1: 23 passed.Full-suite validation remains subject to the PR's CI results; the checks above are focused local verification, not a claim that the complete suite passed.
Review guide
Memory remains repository-local. Remote Memory publication, the separate DSH plugin refactor, and the shelved native DSH runtime are out of scope.
Refs #451
Builds on #454